package com.example.springiocdi.Service;


import com.example.springiocdi.model.Student;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class UserService {
//    @Qualifier("s3")
//    @Autowired
    @Resource(name = "s6")
    private Student s1;

    public void print(){
        System.out.println("hello service");
        System.out.println(s1);
    }





    @Value("${key}")
    private String y1;


//    @Value("${null.val}")
//    private Object y2;
//    @Value("${value}")
//    private Object y3;
//    @Value("${Boolean.val}")
//    private boolean y4;


    public void print1(){
        System.out.println(y1);
//        System.out.println(y2);
//        System.out.println(y3);
//        System.out.println(y4);
    }




}
